home *** CD-ROM | disk | FTP | other *** search
/ Power Programmierung 2 / Power-Programmierung CD 2 (Tewi)(1994).iso / gnu / djgpp / src / binutils.2 / ld / i386coff.sc- < prev    next >
Encoding:
Text File  |  1993-05-30  |  599 b   |  30 lines

  1. # Linker script for 386 COFF.  This works on SVR3.2 and SCO Unix 3.2.2.
  2. # .data2 handles SCO, which uses two data sections.
  3. # Ian Taylor <ian@cygnus.com>.
  4. cat <<EOF
  5. OUTPUT_FORMAT("${OUTPUT_FORMAT}")
  6. ${LIB_SEARCH_DIRS}
  7.  
  8. ENTRY(_start)
  9.  
  10. SECTIONS
  11. {
  12.   .text ${RELOCATING+ SIZEOF_HEADERS} : {
  13.     *(.init)
  14.     *(.text)
  15.     *(.fini)
  16.     ${RELOCATING+ etext  =  .};
  17.   }
  18.   .data ${RELOCATING+ 0x400000 + (. & 0xffc00fff)} : {
  19.     *(.data .data2)
  20.     ${RELOCATING+ edata  =  .};
  21.   }
  22.   .bss ${RELOCATING+ SIZEOF(.data) + ADDR(.data)} :
  23.   {                     
  24.     *(.bss)
  25.     *(COMMON)
  26.     ${RELOCATING+ end = .};
  27.   }
  28. }
  29. EOF
  30.